package cn.edu.tju.core.security.rest.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * DTO for user registration.
 */
public class UserRegisterDto {

   @NotNull
   @Size(min = 1, max = 50)
   private String username;

   @NotNull
   @Size(min = 4, max = 100)
   private String password;

   private Integer userSex;

   private String userImg;

   private String businessName;

   public String getUsername() {
      return username;
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public String getPassword() {
      return password;
   }

   public void setPassword(String password) {
      this.password = password;
   }

   public Integer getUserSex() {
      return userSex;
   }

   public void setUserSex(Integer userSex) {
      this.userSex = userSex;
   }

   public String getUserImg() {
      return userImg;
   }

   public void setUserImg(String userImg) {
      this.userImg = userImg;
   }

   public String getBusinessName() {
      return businessName;
   }

   public void setBusinessName(String businessName) {
      this.businessName = businessName;
   }

   @Override
   public String toString() {
      return "UserRegisterDto{" +
         "username='" + username + '\'' +
         ", userSex=" + userSex +
         '}';
   }
}
